/*    */ package com.newcrm.webapi.sub;
/*    */ 
/*    */ import com.newcrm.bean.User;
/*    */ import com.newcrm.db.CustomerManager;
/*    */ import com.newcrm.exception.NotFoundException;
/*    */ import com.newcrm.util.Util;
/*    */ import com.newcrm.webapi.AbstractAction;
/*    */ import com.newcrm.webapi.AbstractHttpServlet;
/*    */ import java.io.IOException;
/*    */ import java.util.Date;
/*    */ import java.util.List;
/*    */ import javax.servlet.RequestDispatcher;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class ShowCreateCustomerChart extends AbstractAction
/*    */ {
/*    */   public ShowCreateCustomerChart(AbstractHttpServlet servlet)
/*    */   {
/* 22 */     super(servlet);
/*    */   }
/*    */ 
/*    */   public void parse(HttpServletRequest request, HttpServletResponse response)
/*    */     throws IOException, ServletException, NotFoundException
/*    */   {
/* 28 */     User user = super.getLoginUser(request);
/*    */ 
/* 30 */     int type = Util.getURLIntParameter(request.getParameter("type"));
/* 31 */     Date startDate = Util.str2Date(request.getParameter("startDate"));
/* 32 */     Date endDate = Util.str2Date(request.getParameter("endDate"));
/*    */ 
/* 34 */     CustomerManager manager = new CustomerManager();
/* 35 */     List result = manager.getCreateCustomerNum(
/* 36 */       user.companyId, type, startDate, endDate);
/*    */ 
/* 38 */     request.setAttribute("result", result);
/* 39 */     request.getRequestDispatcher("/createCustomerChartXML.jsp").forward(
/* 40 */       request, response);
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.sub.ShowCreateCustomerChart
 * JD-Core Version:    0.6.1
 */